using System.Collections.Generic;
using GameAnalyticsSDK;
using UnityEngine;
using Voodoo.Sauce.Privacy;

namespace Voodoo.Sauce.Internal.Analytics
{
	public static class GameAnalyticsWrapper
	{
		public const string TAG = "GameAnalyticsWrapper";

		private static bool _isInitialized;

		private static bool _isDisabled;

		private static readonly Queue<GameAnalyticsEvent> QueuedEvents = new Queue<GameAnalyticsEvent>();

		internal static bool Initialize(PrivacyCore.GdprConsent consent)
		{
			return false;
		}

		internal static void TrackProgressEvent(GAProgressionStatus status, string progress, int? score, Dictionary<string, object> customFields)
		{
		}

		internal static void TrackDesignEvent(string eventName, Dictionary<string, object> customFields)
		{
		}

		internal static void TrackPurchase(VoodooIAPAnalyticsInfo purchaseInfo)
		{
		}

		private static void InstantiateGameAnalytics()
		{
			GameAnalytics gameAnalytics = Object.FindObjectOfType<GameAnalytics>();
			if (gameAnalytics == null)
			{
				GameObject gameObject = new GameObject("GameAnalytics");
				gameObject.AddComponent<GameAnalytics>();
				gameObject.SetActive(value: true);
			}
			else
			{
				gameAnalytics.gameObject.name = "GameAnalytics";
			}
			GameAnalytics.Initialize();
		}

		private static void SetBuildVersion(string buildVersion)
		{
		}

		private static void Disable()
		{
			VoodooLog.LogDebug(Module.ANALYTICS, "GameAnalyticsWrapper", "Disabling GameAnalytics No User Consent.");
			_isDisabled = true;
			QueuedEvents.Clear();
		}
	}
}
